<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script>
    var str = 'my name is andy';
    console.log(str.length);
    //字符串拼接 数值相加 字符相连
    console.log('沙漠' + '骆驼');
    var age = prompt('请输入您的年龄');
    alert('年龄是' + age );
</script>
<body>
    
</body>
</html>